﻿using UnityEngine;
using System.Collections;

namespace GUIElements{

	public class objectivesHud : MonoBehaviour {
		private string objectives;
		private string progress;
		public Rect window;
		private int currentProgress;
		private int totalProgress;
		public GUIStyle paneStyle;

		// Use this for initialization
		void Start () {
			currentProgress = 0;
			totalProgress = 10;
			window = new Rect(0, 50, 150, 200);

		}
		
		// Update is called once per frame
		void Update () {
			
		}

		void OnGUI ()
		{
			float alpha = .5f;
			GUI.color = new Color(1.0f, 1.0f, 1.0f, alpha);
			GUI.Window (21, window, windowContents, "", paneStyle);
		}

		private void windowContents(int windowID){

			objectives = "TODO put objectives in here";
			progress = "Progress: " + currentProgress +"/" + totalProgress;
			GUI.Label (new Rect (10, 10, 100, 150), objectives);
			GUI.Label (new Rect (10, 70, 100, 150), progress);
			
		}

		public string Objectives{
			get{
				return objectives;
			}
			set{
				objectives = value;
			}
		}

		public string Progress{
			get{
				return progress;
			}
			set{
				progress = value;
			}
		}

		public int CurrentProgress{
			get{
				return currentProgress;
			}
			set{
				currentProgress = value;
			}
		}

		public int TotalProgress{
			get{
				return totalProgress;
			}
			set{
				totalProgress = value;
			}
		}

	}
}

